package com.pactera.madp.cp.config;

import lombok.Data;
import org.springframework.boot.autoconfigure.condition.ConditionalOnExpression;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.context.annotation.Configuration;

import java.util.Set;

@Data
@RefreshScope
@Configuration
@ConfigurationProperties(prefix = "madp.sync")
@ConditionalOnExpression("!'${madp.sync}'.isEmpty()")
public class SyncConfig {

    /**
     * 读取一次文件的记录数
     */
    private Integer crmPerCounts;

    private String hrCharset;
    private String crmCharset;
    private String prdCharset;
    private String fundCharset;

    private String hrPath;

    private String crmPath;

    private String prdPath;

    private String fundPath;

    private String fundOutlineHisPath;

    private String fundOutlineNewPath;

    private String basePath;
    private String fundOutlinePath;
    private String fundOutlineSidebarPath;

    private String prdFtpFile;

    private String fundFtpFile;

    private String fundOutlineFtpBaseDir;

    private String fundOutlineFtpDir;

    private Set<String> fundOutlineDirs;

    // 分行本部、总行本部、湘乡市村镇银行
    private Set<String> excludeOrg;

    // 同步人员控制标识，开启则同步pnsJobNo设置的人员，关闭则同步全部人员
    private Boolean psnCtrlFlag;

    private Set<String> psnJobNo;
}
